package com.ruoyi.system.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

@Data
@Schema(description = "任务全量卸载参数")
public class TaskUninstallDTO {
    // 基础信息
    @NotBlank(message = "任务名称不能为空")
    @Schema(description = "任务名称")
    private String taskName="卸载应用";
    @Schema(description = "任务描述")
    private String taskDescription="卸载应用";

    @Schema(description = "任务优先级  1=高 2=中 3=低")
    private Integer taskPriority=2 ;

    // 推送选项
    private Integer forceQuitApp=0;   // 强制退出应用并更新
    private Integer updateIncompatible=0  ; // 不兼容设备更新
    private Integer autoRetry=0 ; // 安装失败自动重试
    private Integer overwriteExist =0; // 覆盖设备已版本
    private Integer immediatePush =1; // 立即推送

    private Date scheduledPushTime; // 定时推送时间

    @Schema(description = "应用id")
    private Long catalogId;

    @Schema(description = "设备id列表",required = false)
    private List<Long> deviceIds;

    @Schema (description = "飞机号列表",required = false)
    private List<String> planeCodes;
}
